package net.opentsdb.tools;

/**
 * @author Hujf
 * @title: BuildData
 * @date 2021-09-08 9:01
 * @description: 创建初始信息
 */
public class BuildData {

    public static final String version = "2.4.0";
    public static final String short_revision = "b5133bd";

    public static final String full_revision = "b5133bd365a479cbc22f7f0cda888275575a04b6";
    /**
     * UTC date at which this package was built.
     */
    public static final String date = "2021/09/08 09:03:30 +0000";
    /**
     * UNIX timestamp of the time of the build.
     */
    public static final long timestamp = 1631030400;

    public static enum RepoStatus {
        UNKONWN,
        MINT,
        MODIFIED
    }

    public static final RepoStatus repo_status = RepoStatus.MODIFIED;
    public static final String user = "root";
    /**
     * Host on which this package was built.
     */
    public static final String host = "hujf";
    /**
     * Path to the repository in which this package was built.
     */
    public static final String repo = "/root/project/opentsdb/build";
    /**
     * Git branch
     */
    public static final String branch = "master";

    /** Human readable string describing the revision of this package. */
    public static final String revisionString() {
        return "net.opentsdb.tools 2.4.0 built at revision b5133bd (MODIFIED)";
    }
    /** Human readable string describing the build information of this package. */
    public static final String buildString() {
        return "Built on 2019/06/21 14:48:30 +0000 by root@izuf6goyl5x6opx4hvd8l5z:/root/project/opentsdb/build";
    }
}
